﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="forgotpassword.aspx.cs" Inherits="UFSSWebApp.forgotpassword" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>UFSS File Sharing System</title>
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
	<link rel="stylesheet" type="text/css" href="~/styles/main.css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <span class="titleSpan">UFSS</span>
        <hr />
    </div>
    <div align="center" class="centerBox">
        <h2>Forgot Password</h2>
        <table>
            <tr>
                <td><b>Username: </b></td>
                <td align="left"><asp:TextBox ID="txtUsername" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="Username" runat="server" 
                        ControlToValidate="txtUsername" ErrorMessage="*"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td><b>Email: </b></td>
                <td align="left"><asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="revEmail" runat="server" 
                        ControlToValidate="txtEmail" ErrorMessage="* "></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                        ControlToValidate="txtEmail" ErrorMessage="Incorrect Email Format!" 
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td><asp:Button ID="btnCancel" runat="server" Text="Cancel" 
                        onclick="btnCancel_Click" /></td>
                <td align="left"><asp:Button ID="btnConfirm" runat="server" 
                        Text="Retrieve Password" onclick="btnConfirm_Click" />&nbsp; </td>
            </tr>
            <tr>
                <td></td>
                <td align="left"><asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label></td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
